package com.twu.biblioteca;

public class BibliotecaUser {
    private String userName;
    private String userLogin;
    private String userPassword;
    private String userEmail;
    private String userPhone;

    public BibliotecaUser(String userLogin, String userPassword, String  userName,  String userEmail, String userPhone) {

        this.userLogin = userLogin;
        this.userPassword = userPassword;

        this.userName = userName;
        this.userEmail = userEmail;
        this.userPhone = userPhone;
    }

    @Override
    public String toString() {
        return "Name: " + this.userName + '\n' +
                "Email: " + this.userEmail + '\n' +
                "Phone: " + this.userPhone;
    }


    public boolean confirmCredentials(String enteredLogin, String enteredPassword) {
        return  (enteredLogin.equals(this.userLogin) && enteredPassword.equals(this.userPassword));
    }
}
